.class public Lcom/hierynomus/smbj/smb2/messages/p;
.super Lcom/hierynomus/smbj/smb2/d;
.source "SMB2TreeConnectRequest.java"


# instance fields
.field private final c:Lcom/hierynomus/smbj/smb2/SMB2Dialect;

.field private d:Z

.field private e:Lcom/hierynomus/smbj/common/c;


# direct methods
.method public constructor <init>(Lcom/hierynomus/smbj/smb2/SMB2Dialect;Lcom/hierynomus/smbj/common/c;J)V
    .locals 8

    .line 1
    sget-object v3, Lcom/hierynomus/smbj/smb2/SMB2MessageCommandCode;->SMB2_TREE_CONNECT:Lcom/hierynomus/smbj/smb2/SMB2MessageCommandCode;

    const/16 v1, 0x9

    const-wide/16 v6, 0x0

    move-object v0, p0

    move-object v2, p1

    move-wide v4, p3

    invoke-direct/range {v0 .. v7}, Lcom/hierynomus/smbj/smb2/d;-><init>(ILcom/hierynomus/smbj/smb2/SMB2Dialect;Lcom/hierynomus/smbj/smb2/SMB2MessageCommandCode;JJ)V

    .line 2
    iput-object p1, p0, Lcom/hierynomus/smbj/smb2/messages/p;->c:Lcom/hierynomus/smbj/smb2/SMB2Dialect;

    .line 3
    iput-object p2, p0, Lcom/hierynomus/smbj/smb2/messages/p;->e:Lcom/hierynomus/smbj/common/c;

    return-void
.end method

.method private e(Lcom/hierynomus/smbj/common/b;)V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/hierynomus/smbj/smb2/messages/p;->c:Lcom/hierynomus/smbj/smb2/SMB2Dialect;

    sget-object v1, Lcom/hierynomus/smbj/smb2/SMB2Dialect;->SMB_3_1_1:Lcom/hierynomus/smbj/smb2/SMB2Dialect;

    if-ne v0, v1, :cond_0

    iget-boolean v0, p0, Lcom/hierynomus/smbj/smb2/messages/p;->d:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    .line 2
    invoke-virtual {p1, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->c(I)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    goto :goto_0

    .line 3
    :cond_0
    invoke-virtual {p1}, Lcom/hierynomus/smbj/common/b;->m()Lcom/hierynomus/protocol/commons/buffer/Buffer;

    :goto_0
    return-void
.end method


# virtual methods
.method protected d(Lcom/hierynomus/smbj/common/b;)V
    .locals 1

    .line 1
    iget v0, p0, Lcom/hierynomus/smbj/smb2/d;->b:I

    invoke-virtual {p1, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->c(I)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 2
    invoke-direct {p0, p1}, Lcom/hierynomus/smbj/smb2/messages/p;->e(Lcom/hierynomus/smbj/common/b;)V

    const/16 v0, 0x48

    .line 3
    invoke-virtual {p1, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->c(I)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 4
    iget-object v0, p0, Lcom/hierynomus/smbj/smb2/messages/p;->e:Lcom/hierynomus/smbj/common/c;

    invoke-virtual {v0}, Lcom/hierynomus/smbj/common/c;->toString()Ljava/lang/String;

    move-result-object v0

    .line 5
    invoke-virtual {p1, v0}, Lcom/hierynomus/smbj/common/b;->b(Ljava/lang/String;)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 6
    invoke-virtual {p1, v0}, Lcom/hierynomus/smbj/common/b;->a(Ljava/lang/String;)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    return-void
.end method
